import Observer from './Observer';
/**
 * observer函数
 * @param {*} value 
 */
export default function observe(value) {
    //不是对象，不用操作
    if (typeof value != 'object') return;
    var ob;
    if (typeof value.__obj__ != 'undefined') {
        ob = value.__obj__;
    } else {
        ob = new Observer(value);
    }
    return ob;
}